home *** CD-ROM | disk | FTP | other *** search
- /*
- * Toggle_Bottom_Docking_Area.bsh - a BeanShell macro for the
- * jEdit text editor - Expands or collapses the bottom docking
- * area, depending on it's current state.
- *
- * Copyright (C) 2003 Ollie Rutherfurd <oliver@rutherfurd.net>
- *
- * $Id: Toggle_Bottom_Docking_Area.bsh,v 1.1 2003/10/26 20:57:28 spestov Exp $
- */
-
- toggleBottomDockingArea()
- {
- dockarea = view.getDockableWindowManager().getBottomDockingArea();
- if(dockarea.getCurrent() == null)
- {
- dockarea.showMostRecent();
- name = dockarea.getCurrent();
- component = view.getDockableWindowManager().getDockable(name);
- if(component instanceof DefaultFocusComponent)
- component.focusOnDefaultComponent();
- }
- else
- {
- dockarea.show(null);
- view.getTextArea().requestFocus();
- }
- }
-
- toggleBottomDockingArea();
-
- /*
-
- Macro index data (in DocBook format)
-
- <listitem>
- <para><filename>Toggle_Bottom_Docking_Area.bsh</filename></para>
- <abstract><para>
- Expands or collapses the bottom docking area,
- depending on it's current state.
- </para></abstract>
- </listitem>
-
- */
-
-